package com.umgsai.thread.thread37;

/**
 * 线程交替执行
 * @author Admin
 *
 */
public class Main {
	public static void main(String[] args) {
		DBTools dbTools = new DBTools();
		for (int i = 0; i < 20; i++) {
			ThreadA threadA = new ThreadA(dbTools);
			threadA.start();
			ThreadB threadB = new ThreadB(dbTools);
			threadB.start();
		}
	}
}
